package models

import (
	"gitee.com/cjf8134/bbs_serve/internal/pkg/utils/constutil"
)

type Category struct {
	Model
	Name     string `db:"name" json:"name"`
	PID      int    `db:"pid" json:"pid"`
	TotalNum int    `db:"total_num" json:"total_num"`
}

func (Category) TableName() string {
	return constutil.TablePrefix + "category"
}
